import router from './router'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'

NProgress.configure({ showSpinner: false })

//开发的时候使用
// whiteList.push('/workOrder/config', '/workOrder/addTemplate', '/test', /^\/workOrder\/editTemplate\/\d*/, /^\/workOrder\/previewTemplate\/\d*/ )
router.beforeEach((to, from, next) => {
  next()
})

router.afterEach(() => {
  NProgress.done()
})
